from flask import Flask, render_template

app = Flask(__name__)


# 职员管理
@app.route("/person/")
def person():
    p_list = [{
        "name": "马邦德",
        "department": "开发",
        "position": "员工"
    }]
    return render_template("person.html", **locals())


# 新闻管理
@app.route("/news/")
def news():
    return render_template("news.html")


# 权限管理
@app.route("/permission/")
def permission():
    return render_template("permission.html")


if __name__ == '__main__':
    app.run(host='127.0.0.1', port=80)